projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdcf117
)
list_compat.h: remove list_add_after()
author
Felix Fietkau
<
[email protected]
>
Thu, 20 Mar 2014 21:59:26 +0000
(22:59 +0100)
committer
Felix Fietkau
<
[email protected]
>
Thu, 20 Mar 2014 21:59:26 +0000
(22:59 +0100)
Signed-off-by: Felix Fietkau <
[email protected]
>
avl.c
patch
|
blob
|
history
list_compat.h
patch
|
blob
|
history
diff --git
a/avl.c
b/avl.c
index 545fd2a5269248bba176e0581ec195089c4df019..b1769368a483854ab2abeb570d20e5cbc13dc61d 100644
(file)
--- a/
avl.c
+++ b/
avl.c
@@
-491,7
+491,7
@@
avl_insert_before(struct avl_tree *tree, struct avl_node *pos_node, struct avl_n
static void
avl_insert_after(struct avl_tree *tree, struct avl_node *pos_node, struct avl_node *node)
{
- list_add
_after(&pos_node->list, &
node->list);
+ list_add
(&node->list, &pos_
node->list);
tree->count++;
}
diff --git
a/list_compat.h
b/list_compat.h
index 1357287c5cb1b976d6e5bf451083edba9e985aec..c61d7542aa95a7e5b7f9f61cbc5554227a31ef9d 100644
(file)
--- a/
list_compat.h
+++ b/
list_compat.h
@@
-17,7
+17,6
@@
#ifndef __LIST_COMPAT_H
#define __LIST_COMPAT_H
-#define list_add_after(_after, _list) list_add(_list, _after)
#define list_add_before(_before, _list) list_add_tail(_list, _before)
#define list_remove(_list) list_del(_list)
#define list_is_empty(_list) list_empty(_list)